package com.party.core.model.serviceguide;

import com.party.core.model.BaseModel;

/**
 * @program: party
 * @description: 服务指南类型
 * @author: Hua Qunhao
 * @create: 2019-04-16 17:59
 **/
public class ServiceGuideType extends BaseModel {
    //类型名称
    private String name;
    //排序
    private Integer sort;
    //数量
    private Integer goodsNum;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ServiceGuideType)) return false;
        if (!super.equals(o)) return false;

        ServiceGuideType that = (ServiceGuideType) o;

        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (sort != null ? !sort.equals(that.sort) : that.sort != null) return false;
        return goodsNum != null ? goodsNum.equals(that.goodsNum) : that.goodsNum == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (sort != null ? sort.hashCode() : 0);
        result = 31 * result + (goodsNum != null ? goodsNum.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "ServiceguideType{" +
                "name='" + name + '\'' +
                ", sort=" + sort +
                ", goodsNum=" + goodsNum +
                '}';
    }
}
